/* home.css */

/* header */
.wrapper{
    background-color: #eee;
    width: 950px;
    margin: 0 auto;
}

.wrapper .header{
    margin-bottom:10px;
    width:100%;
    font-size:20px;
    text-align:center;
    background-color: #2bb669;
    color:#fff;
    padding:15px 0;
}

.wrapper .content{
    width: 100%;
    /* new add */
    min-height: 450px;
    /* new add */
    position: relative;
    min-height: 580px;
    /* margin-top: 10px; */
}
.wrapper .player-control{
    background-color: #f6f6f8;
    height: 65px;
    width: 100%;
}

/* section_中间 */
.w{
    width: 90%;
    margin:0 auto;
}

/* 轮播图外围 */
.carousel-wrapper{
    width: 100%;
    position:relative;
}

.carousel-container{
    position:relative;
    height: 300px;
    width: 100%;
    /* new add */
    overflow: hidden;
}

/* new add start */
.carousel-content{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.carousel-item{
    position:absolute;
    width: 100%;
    height: 100%;
    top:0;
    left:0;
    overflow:hidden;
}
.carousel-item img{
    width: 100%;
    height: auto;
}

.carousel-control{
    width: 25px;
    height: 25px;
    line-height: 25px;
    border-radius:50%;
    border:none;
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index: 2021;
    background-color: rgba(255,255,255,0.2);
    text-align: center;
    color:rgba(255,255,255,0.6);
    /* new add */
    cursor: pointer;
}


.carousel-control-left{
    left: 10px;
}
.carousel-control-right{
    right:10px;
}
.carousel-control-hover{
    background-color: rgba(255,255,255,0.5);
    color: rgba(255,255,255,0.9);
}

.carousel-wrapper .carousel-indicators{
    position:absolute;
    bottom:0;
    left: 50%;
    transform: translateX(-50%);
}
.carousel-indicators li{
    width: 50px;
    height: 4px;
    background-color: rgba(255,255,255,0.4);
    margin: 15px 2px;
    cursor: pointer;
}
.carousel-indicators .active{
    background-color: rgba(255,255,255,0.9);
}

/* 推荐歌单标题 */
.recommend-playlist{
    width: 100%;
    margin:10px 0;

}
.recommend-playlist-header{
    font-size:20px;
    padding:10px 0;
}

.recommend-playlist-container{
    width: 100%;
}
.recommend-playlist-item{
    width: 18%;
}
.recommend-playlist-cover{
    width: 100%;
    /* 如果没有设置这个高度，图片的尺寸高度很高的时候，就会变形 */
    height: 140px;
    position:relative;
    border-radius:8px;
    overflow:hidden;
    font-size:0;
}
.recommend-playlist-cover img{
    width: 100%;
    height: auto;
    font-size: 0;
    /* new add */
    transition:transform 0.2s linear;
}
.recommend-playlist-cover .recommend-playlist-icon{
    opacity: 0;
    position:absolute;
    bottom:10px;
    right: 5px;
    color:#ccc;
    font-size: 20px;
    /* new add */
    transition:opacity 0.2s linear;
}

/* 暂停图标 */
.hover .recommend-playlist-icon{
    opacity: 1;
}
/* 新增样式：图片伸缩 */
.hover .recommend-playlist-cover img{
    transform:scale(1.1);
}

.recommend-playlist-title{
    margin-top: 5px;
    width: 100%;
}

/* 底部 */
.wrapper .player-control{
    background-color: #f6f6f8;
    width: 100%;
    height: 65px;
}
.player-control-songinfo{
    width: 15%;
    margin-left: 10px;
    min-height: 80%;
}

.player-control-unit{
    /* 自适应 */
    flex-grow: 1;
    margin: 0 20px;
}
.player-control-songinfo .img{
    width: 50%;
    height: 100%;
    overflow: auto;
    border-radius: 5px;
    font-size: 0;
}
.player-control-songinfo .img>img{
    width: 100%;
    height: 100%;
}
.player-control-songinfo .songinfo{
    width: 50%;
}
.player-control-songinfo .songinfo>span{
    margin:4px;
    margin-left: 6px;
    width: 100%;
}
.player-control-songinfo .songinfo > .songname{
    font-size: 16px;
}
.player-control-songinfo .songinfo > .singer{
    font-size: 14px;
}

.player-control-unit .control{
    font-size: 35px;
}
.player-control-unit .list{
    font-size:25px;
    position: relative;
}
.player-control-unit .list .player-list{
    position: absolute;
    top: -610px;
    right: -570px;
    width: 450px;
    height: 590px;
    background-color: #f6f2f2;
}

/* 进度条 */
.song-progress{
    width: 446px;
}
.player-control-unit .song-progress .current-time{
    width: 12%;
    margin-right:5px;
}
.player-control-unit .song-progress .total-time{
    margin-left:5px;
}
.player-control-unit .volume{
    margin-left: 20px;
}
.player-control-unit .volume .volume-icon{
    margin-right:5px;
}
.player-control-unit .progress{
    height: 4px;
    background-color: #ccc;
    position:relative;
}
.player-control-unit #progress-bar{
    width: 350px;
}
.player-control-unit #volume-bar{
    width: 50px;
}
.player-control-unit .progress .progress-bar{
    position: absolute;
    width: 50%;
    height: 4px;
    background-color: #4dc376;
}
/* 进度条开始的小圆点 */
.player-control-unit .progress .progress-dot{
    position:absolute;
    top:-2px;
    left:-2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4dc376;
}


/* 播放列表 */
.player-list{
    border: #504e4e solid 1px;

}
.player-list-ul{
    height: 550px;
}
.player-list h2{
    margin: 10px 20px;
}
.player-list-li{
    font-size: 17px;
    margin: 15px auto;
}
.player-list-li .playing{
    width: 10%;
}
.player-list-li .songname{
    width: 40%;
}
.player-list-li .singer{
    width: 30%;
}
.player-list-li .song-time{
    width: 20%;
}

